package pl.hotdev.spring.test01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Tester {

	@Autowired
	private Sample sample;
	private int counter;

	@Autowired
	private SampleService service;

	public Tester() {
		counter++;
	}

	public Sample getSample() {
		return sample;
	}

	public void setSample(Sample sample) {
		this.sample = sample;
	}

	public int getCounter() {
		return ++counter;
	}

	public SampleService getService() {
		return service;
	}

}
